package com.wandian.controller
{
	import com.wandian.data.PlayerData;
	
	import flash.events.EventDispatcher;
	import flash.events.IEventDispatcher;
	/**   
	* @author long
	* @QQ 108232706
	* @version 1.0   
	*/   
	public class RoleController extends EventDispatcher
	{
		protected static var instance:RoleController;

		/**
		 * 玩家人物数据 
		 */		
		public var playerData :PlayerData;
		/**
		 * 当前地图上的角色列表 
		 */		
		public var roleList :Array;
		
		public function RoleController(target:IEventDispatcher=null)
		{
			super(target);
			if (instance != null)
				throw new Error("Only one Singleton instance should be instantiated");
			instance=this;
		}

		static public function get I():RoleController
		{
			if (instance == null)
				instance=new RoleController();
			return instance;
		}
	}
}
